<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理菜谱</title>
<link rel="stylesheet" href="css/tableCss.css" type="text/css" />

</head>
<body>
	<table id="model_t" align="center">
		<tr style="height: 10px;">
			<td id="tth" colspan="8"><p id="thp">&nbsp;&nbsp;管理菜谱</p></td>

		</tr>

		<tr>
			<td><p id="tdph">图片</p></td>
			<td><p id="tdph">菜名</p></td>
			<td><p id="tdph">价格</p></td>
			<td><p id="tdph">操作</p></td>
		</tr>
		<s:iterator value="menus" var="men" status="status">
			<tr>
				<td><img id="img" alt="" src="<%=basePath%>${men.picturePath}" ></td>
				<td><p id="tdp" >${men.menuName}</p></td>
				<td><p id="tdp">${men.price}</p></td>
				<td><p id="tdp"><a href="editMenu?menu.id=${men.id}&menu.shopId=${men.shopId}">编辑</a>|<a href="deleteMenuById?menu.id=${men.id}">删除</a></p></td>
			</tr>
		</s:iterator>
		<tr>
			<td><p id="tdp"><a href="addMenu?shop.id=${shop.id}">添加菜</a></p></td>
		</tr>
	</table>
</body>
</html>